home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_bab_mardukgrab.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  79 lines

  1. # Jones 3D Cog Script
  2. #
  3. # BAB_MardukGrab.cog
  4. #
  5. # Indy picks up the tablets & comments
  6. #
  7. # [HB from a cog by SXC]
  8. #
  9. #
  10. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  11. #
  12. # ========================================================================================
  13.  
  14. symbols
  15.  
  16.     message     startup
  17.     message     activate
  18.     
  19.     sound        in_wellwell=Inxj232.wav        local
  20.     sound        in_marduk=Bb10j01.wav        local
  21.  
  22.     thing       player                        local
  23.     thing       idol
  24.     thing       swingpos        
  25.     
  26.     int         idolnum=83                    local 
  27.     int            grabcheck=0                    local  
  28.     int         cursound                    local 
  29.              
  30. end
  31.  
  32. # ==============================================================================
  33.  
  34. code
  35.  
  36. startup:
  37.  
  38.     player = GetLocalPlayerThing();
  39.  
  40.     return;
  41.            
  42. # ..............................................................................
  43.  
  44. activate:
  45.  
  46.     If ((GetSenderRef() == idol) && (grabcheck == 0) && (GetCurItem(player) == 0) && (GetCurWeapon(player) == 0))
  47.     {
  48.         grabcheck = 1;
  49.         MakeMeStop();
  50.         StartCutscene(0);
  51.  
  52.         SetExtCamOffsetToThing(swingpos);
  53.  
  54.         PlayVoice(player, in_wellwell, 1.0, 1);
  55.         cursound = PlayVoice(player, in_marduk, 1.0, 0);    
  56.         Sleep(1.8);
  57.  
  58.         PlayMode(player, 60, 0);
  59.         Sleep(0.35);
  60.  
  61.         DestroyThing(idol);
  62.         ChangeInv(player, idolnum, 1);
  63.         SetInvAvailable(player, idolnum, 1);
  64.         JonesInvItemChanged(idolnum);
  65.         Sleep(0.5);
  66.         
  67.         WaitForSound(cursound);
  68.         Sleep(0.5);
  69.         RestoreExtCam();
  70.         Sleep(0.5);
  71.  
  72.         EndCutscene();
  73.         ClearActorFlags(player, 0x200000);
  74.     }
  75.     
  76. return;
  77.         
  78. end
  79.